<!DOCTYPE html>  
<html>  
  <head>  
    <title>Strings</title>  
  </head>
  <body>  
    <script type="text/javascript">
       var txt0 = new String("Hello World");
       
       var txt = "Hello World";
       document.write("The length is: " + txt.length);
       document.write("<hr>");
       
       document.write(txt.toUpperCase()); // Outputs "HELLO WORLD"
       document.write("<br>");
       document.write(txt.toLowerCase()); // Outputs "hello world"
       document.write("<br>");
       document.write(txt.indexOf("o"));
       document.write("<hr>");
       
       var firstName = "John";
       var lastName = "Doe";
       document.write(firstName + " " + lastName);document.write("<br>");
       document.write(firstName.concat(lastName));document.write("<hr>");
       
       var txt1 = "We are the so-called \"Vikings\" from the north.";
       document.write(txt1);document.write("<br>");
       var txt2 = "It\'s alright.";
       document.write(txt2);document.write("<br>");
       var txt3 = "The character \\ is called backslash.";
       document.write(txt3);document.write("<br>");
    </script> 
  </body>  
</html>